@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', config('index_title').'-个人中心')
@section('footer')
     @include('common.footer')
@stop
@section('content')

    <link href="/front/Content/assets/css/codemirror.css" rel="stylesheet" />
    <link href="/front/Content/assets/css/ace.min.css" rel="stylesheet" />
        <link href="/front/Content/tixianjilv.css" rel="stylesheet" />
        <link href="/front/Content/zhanghuchongzhi.css" rel="stylesheet" />
    <link href="/front/Content/wodeshuju.css" rel="stylesheet" />

<div class="banner1"></div>
<div class="xtxx">
    <div class="xtxx_top">
        <div class="xtxx_tit"><p><a href="/home">个人中心</a>&nbsp;&gt;&nbsp;<a href="javascript:;">名片收益</a></p></div>
    </div>
    <div class="wdda">
        <div class="wdda_left fl" style="width: 185px">
            <ul class="shuji-nav">
				<li><a  href="/user/recharge">账户充值</a></li>
                        <li class="on"><a href="/user/income">名片收益</a></li>
                        <li><a class="tixian" href="/user/withdraw">申请提现</a></li>
                        <li><a href="/user/withdrawRecord">提现记录</a></li>
            </ul>
        </div>
        <div class="profit_right mt60 mb238" style="width: 945px;">

            <div class="lbgs">
                <table border="0" cellpadding="0" cellspacing="0" class="bgys1" width="100%">
                    <thead>
                        <tr>
                            <td bgcolor="#009ee7" style="width:400px;">
                                <div align="center" class="STYLE1">创建时间</div>
                            </td>
                            <td bgcolor="#009ee7" style="width:800px;">
                                <div align="center" class="STYLE1">内容</div>
                            </td>
                            <td bgcolor="#009ee7" style="width:400px;">
                                <div align="center" class="STYLE1">金额</div>
                            </td>
                             <td bgcolor="#009ee7" style="width:400px;">
                                <div align="center" class="STYLE1">名片联系人</div>
                            </td>
                           
                        </tr>
                    </thead>
                    <tbody id="tbody">
                    @foreach($pageList as $row)
                    <tr>
                            <td>
                                <div align="center" class="">{{$row->updated_at->toDateString()}}</div>
                            </td>
                            <td>
                                <div align="center" class="">
                                {{$row->content}}
                                </div>
                            </td>
                            <td>
                                <div align="center" class="">
                                {{$row->money}}元
                                </div>
                            </td>
                            <td>
                                <div align="center" class="">
                                  @if(isset($row->cart))
                                {{$row->cart->name}}
                                @endif
                                </div>
                            </td>
                            <td>
                                <div align="center" class="">

                                </div>
                            </td>

                        </tr>
                    @endforeach
                    </tbody>
                </table>

                <div class="dede_pages"><ul class="pagelist">
                {{ $pageList->links('common.paginator', [ 'results'=>$pageList ]) }}
                </ul></div>

            </div>

        </div>
        <script>
            $(".wdda .wdda_left h3").each(function (index) {
                $(this).click(function () {
                    $(".on5").removeClass("on5");
                    $(this).addClass("on5");
                    $(".wdda .wdda_right .danr:eq(" + index + ")").show().siblings().hide();
                });
            });
        </script>
    </div>
</div>
<script type="text/javascript">
function showc(id)
{
	if(uid <=0)window.location.href='/login'

	ajaxurl('/user/showCart', {item_id:id, item_type:'cart'}, function(res){
		if(res.status == 1){
			layer.photos({
			    photos: res.data
			    ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
			 });
		}else{
			layer.msg(res.msg);
		}


	});
}
$(function(){
	@if(session('status') == 1)
		layer.msg('修改成功.');
	@endif
})
</script>
@endsection
